hello guys! i typed this code used "Code::Blocks",but it said "D:\My Documents\c code\let us c\p288.c|66|error: cannot convert `int (*)[2]' to `int*' in assignment|". why?
this code is on page296 of "Let us c".
thank you!Code:main() { int s[5][2]={ {1234,56}, {1212,33}, {1434,80}, {1312,78} }; int (*p)[2]; int i,j,*pint; for(i=0;i<=3;i++) { p=&s[i]; pint=p; printf("\n"); for(j=0;j<=1;j++) /* printf("%d ",*(*(p)+j));*/ printf("%d ",*(pint+j)); } }